package com.lhc.event;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

/**
 * @author LuHuanCheng
 * 类说明：享学监听器
 */
public class EnjoyApplicationListener implements ApplicationListener {

    @Override
    public void onApplicationEvent(ApplicationEvent event) {
        if (event instanceof EnjoyEvent) {
            System.out.println("== 监听到享学事件EnjoyEvent，do something");
        }
    }
}